package com.cly.controller;

import com.cly.mapper.UserMapper;
import com.cly.pojo.User;
import com.cly.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserConterller {

    @Autowired
    UserService userService;
    @GetMapping("/queryUserList")
    public List<User> queryUserList(){
        List<User> userList = userService.queryUserList();
        return userList;
    }
}
